package com.pervasa.demo.re.impl.command;

public class IntLitToken extends Token {

	public final int val; // The int value of the literal.

	public IntLitToken(int val) {
		super(Kind.INT_LITERAL);
		this.val = val;
	}

	public String toString() {
		return kind + ": " + val;
	}

	public boolean equals(Object t) {
		return super.equals(t) && (val == ((IntLitToken) t).val);
	}
	public int hashCode() {
		assert false
		: "hashCode method not designed";
		return 42;
		}
}
